package com.allianz.webapps.common;


public class CustomerContextHolder {
	 	public static final String DATA_SOURCE_NEWTOUCH = "dataSourceNewTouch";
	    public static final String DATA_SOURCE_ALLIANZ = "dataSourceAllianz";
	    
	    //用ThreadLocal来设置当前线程使用哪个dataSources
	    private static final ThreadLocal<String> contextHolder = new ThreadLocal<String>();
	    
	    public static void setCustomerType(String customerType) {  
	        contextHolder.set(customerType);  
	    }  
	    public static String getCustomerType() {  
	        return contextHolder.get();  
	    }  
	    public static void clearCustomerType() {  
	        contextHolder.remove();  
	    }  
	}  